#pragma once

#include <PSDFCore/PSDFCore.h>
#include <osg/ClipNode>
#include "Satellite.h"

class Satellite2D : public EventHandler
{
public:
	Satellite2D(OsgViewerBase* parentViewer);
	~Satellite2D(void);

	string getModuleName() {return "MyGIS"; }

	void handleSystemEvent( unsigned eventType, int param1, int param2 );
	void handleCustomEvent( unsigned eventType, int param1, int param2 );

	void followSatellite(int num);

private:
	OsgViewerBase*			_parentViewer;

	map<int, Satellite*>	_satellites;
	ClipNode*				_clipGroup;

	vector<DataCenter::DataPtr<SatLocation>> _satData;
};
